import request from '@/utils/request'

// 获取车辆类型分页数据
export function getCarTypePageDataAPI(params) {
  return request({
    url: '/manager/truckType/page',
    params
  })
}
// 添加车辆类型
export function addCarTypeAPI(data) {
  return request({
    url: '/manager/truckType',
    method: 'POST',
    data
  })
}
// 获取车辆类型详情
export function getCarTypeDetailsAPI(id) {
  return request({
    url: `/manager/truckType/${id}`
  })
}
// 更新车辆类型
export function updateCarTypeAPI(data) {
  return request({
    url: `/manager/truckType/${data.id}`,
    method: 'PUT',
    data
  })
}
// 删除车辆类型
export function delCarType(id) {
  return request({
    url: `/manager/truckType/${id}`
  })
}
